package com.milotnt.pojo;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@Schema(description = "课程表实体类")
@TableName("class_table")
@Data
public class ClassTableEntity extends BaseEntity{

    @Schema(description = "课程名称")
    @TableField("class_name")
    private String className;

    @Schema(description = "开课时间")
    @TableField("class_begin")
    @DateTimeFormat(pattern = "yyyy-MM-dd'T'HH:mm")
    @JsonFormat(pattern = "yyyy年MM月dd日 HH:mm:ss", timezone = "GMT+8")
    private Date classBegin;

    @Schema(description = "课程时间")
    @TableField("class_time")
    private Float classTime;

    @Schema(description = "教练")
    @TableField("coach")
    private String coach;

}
